<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>北京师范大学师范生</title>
<link href="/Public/home/default.css" rel="stylesheet"
	type="text/css" />
<link rel="stylesheet" type="text/css"
	href="/Public/home/header.css" />
<link rel="stylesheet" href="/Public/coin-slider/coin-slider-styles.css" type="text/css" />
<script language="javascript" type="text/javascript"
	src="/Public/home/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/Public/home/jquery.lightbox-0.5.js"></script>
<script type="text/javascript" src="/Public/home/jquery.bxcarousel.min.js"></script>
<script type="text/javascript" src="/Public/coin-slider/coin-slider.min.js"></script>
<script type="text/javascript" src="/Public/home/jquery.marquee.js"></script>
 <script language="javascript" type="text/javascript">
	$(document).ready(function() {
		$(".mainNav a").mouseover(function() {
			$(".mainNav a").attr("class", "");
			$("#" + this.id).attr("class", "actived");
			var currentMenuNo = parseInt(this.id.substring(1));
			$(".secondNav div").each(function() {
				$(this).hide();
				$("#subNav" + currentMenuNo).show();
			});
		});
	});
	/*banner index pic=910*315*/
	$(document).ready(function() {
		$('#coin-slider').coinslider({ width: 910, height: 315, navigation: true, delay: 3000, effect: 'rain',opacity: 0.5 });
	});
</script>
<script type="text/javascript">
//滚动插件
(function($){
$.fn.extend({
        Scroll:function(opt,callback){
                //参数初始化
                if(!opt) var opt={};
                var _this=this.eq(0).find("ul:first");
                var        lineH=_this.find("li:first").height(), //获取行高
                        line=opt.line?parseInt(opt.line,10):parseInt(this.height()/lineH,10), //每次滚动的行数，默认为一屏，即父容器高度
                        speed=opt.speed?parseInt(opt.speed,10):500, //卷动速度，数值越大，速度越慢（毫秒）
                        timer=opt.timer?parseInt(opt.timer,10):3000; //滚动的时间间隔（毫秒）
                if(line==0) line=1;
                var upHeight=0-line*lineH;
                //滚动函数
                scrollUp=function(){
                        _this.animate({
                                marginTop:upHeight
                        },speed,function(){
                                for(i=1;i<=line;i++){
                                        _this.find("li:first").appendTo(_this);
                                }
                                _this.css({marginTop:0});
                        });
                }
                //鼠标事件绑定
                _this.hover(function(){
                        clearInterval(timerID);
                },function(){
                        timerID=setInterval("scrollUp()",timer);
                }).mouseout();
        }       
})
})(jQuery);
$(document).ready(function(){
        $("#right").Scroll({line:1,speed:1500,timer:2000});
});
</script>
<script type="text/javascript">   
var t = n = count = 0;   
$(function(){   
    count = $("#play_list a").size();   
    $("#play_list a:not(:first-child)").hide();   
    $("#play_info").html($("#play_list a:first-child").find("img").attr('alt'));   
    $("#play_text li:first-child").css({"background":"#fff",'color':'#47720f'});   
    $("#play_info").click(function(){window.open($("#play_list a:first-child").attr('href'), "_blank")});   
    $("#play_text li").click(function() {   
        var i = $(this).text() - 1;   
        n = i;   
        if (i >= count) return;   
        $("#play_info").html($("#play_list a").eq(i).find("img").attr('alt'));   
        $("#play_info").unbind().click(function(){window.open($("#play_list a").eq(i).attr('href'), "_blank")})   
        $("#play_list a").filter(":visible").fadeOut(500).parent().children().eq(i).fadeIn(1000);   
        $(this).css({"background":"#fff",'color':'#47720f'}).siblings().css({"background":"#47720f",'color':'#fff'});   
    });   
    t = setInterval("showAuto()", 2000);   
    $("#play").hover(function(){clearInterval(t)}, function(){t = setInterval("showAuto()", 2000);});   
})   
  
function showAuto()   
{   
    n = n >= (count - 1) ? 0 : n + 1;   
    $("#play_text li").eq(n).trigger('click');   
}   
</script>
<script type="text/javascript">  
$.fn.infiniteCarousel = function () {
 
    function repeat(str, num) {
        return new Array( num + 1 ).join( str );
    }
  
    return this.each(function () {
        var $wrapper = $('> div', this).css('overflow', 'hidden'),
            $slider = $wrapper.find('> ul'),
            $items = $slider.find('> li'),
            $single = $items.filter(':first'),
            
            singleWidth = $single.outerWidth(), 
            visible = Math.ceil($wrapper.innerWidth() / singleWidth), // note: doesn't include padding or border
            currentPage = 1,
            pages = Math.ceil($items.length / visible);            
 
 
        // 1. Pad so that 'visible' number will always be seen, otherwise create empty items
        if (($items.length % visible) != 0) {
            $slider.append(repeat('<li class="empty" />', visible - ($items.length % visible)));
            $items = $slider.find('> li');
        }
 
        // 2. Top and tail the list with 'visible' number of items, top has the last section, and tail has the first
        $items.filter(':first').before($items.slice(- visible).clone().addClass('cloned'));
        $items.filter(':last').after($items.slice(0, visible).clone().addClass('cloned'));
        $items = $slider.find('> li'); // reselect
        
        // 3. Set the left position to the first 'real' item
        $wrapper.scrollLeft(singleWidth * visible);
        
        // 4. paging function
        function gotoPage(page) {
            var dir = page < currentPage ? -1 : 1,
                n = Math.abs(currentPage - page),
                left = singleWidth * dir * visible * n;
            
            $wrapper.filter(':not(:animated)').animate({
                scrollLeft : '+=' + left
            }, 500, function () {
                if (page == 0) {
                    $wrapper.scrollLeft(singleWidth * visible * pages);
                    page = pages;
                } else if (page > pages) {
                    $wrapper.scrollLeft(singleWidth * visible);
                    // reset back to start position
                    page = 1;
                } 
 
                currentPage = page;
            });                
            
            return false;
        }
        
        $wrapper.after('<a class="arrow back">&lt;</a><a class="arrow forward">&gt;</a>');
        
        // 5. Bind to the forward and back buttons
        $('a.back', this).click(function () {
            return gotoPage(currentPage - 1);                
        });
        
        $('a.forward', this).click(function () {
            return gotoPage(currentPage + 1);
        });
        
        // create a public interface to move to a specific page
        $(this).bind('goto', function (event, page) {
            gotoPage(page);
        });
    });  
};
 
$(document).ready(function () {
  $('.infiniteCarousel').infiniteCarousel();
});
</script>
<script type="text/javascript">

    $(function() {

        $('#gallery a').lightBox({
         	overlayBgColor: '#FFF',
         	overlayOpacity: 0.6,
         	imageLoading: '/Public/home/lightbox-ico-loading.gif',
         	imageBtnClose: '/Public/home/lightbox-btn-close.gif',
         	imageBtnPrev: '/Public/home/lightbox-btn-prev.gif',
         	imageBtnNext: '/Public/home/lightbox-btn-next.gif',
         	containerResizeSpeed: 350,
         	txtImage: 'Imagem',
         	txtOf: 'de'
            });

    });
    /*$(document).ready(function(){
        $('#marqueediv').bxCarousel({
                display_num: 7,
                move: 1,
                auto: true,
                controls: false,
                margin: 10,
                auto_hover: true,
        });
});*/
    </script>

</head>
<body>
	<div id="container">
		<div id="logo">
			<a href="http://xsc.bnu.edu.cn" target="_blank"><img src="/Public/home/logo.jpg" border="0" usemap="#Map" width="910px"/></a>
		</div>
		<div id="menu">
			<div class="header">
				<div class="padder">
					<div class="nav">
						<div class="navLaftBg">
							<div class="navRightBg">
								<div class="mainNav">
								<a href="__APP__/Home/Index/index" id="n1">首页</a>
								<?php if(is_array($pagefront)): $i = 0; $__LIST__ = $pagefront;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$page): ++$i;$mod = ($i % 2 )?><a href="__APP__/Home/View/page?pageid=<?php echo ($page["page_id"]); ?>" id="n<?php echo ($i+1); ?>"><?php echo ($page["page_name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
									<?php if(is_array($main)): $key = 0; $__LIST__ = $main;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$navi): ++$key;$mod = ($key % 2 )?><a
										href="__APP__/Home/View/category?caid=<?php echo ($navi["category_id"]); ?>" id="n<?php echo ($key+$count[0]+1); ?>"><?php echo ($navi["category_name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
									<?php if(is_array($pageback)): $i = 0; $__LIST__ = $pageback;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$page): ++$i;$mod = ($i % 2 )?><a href="__APP__/Home/View/page?pageid=<?php echo ($page["page_id"]); ?>" id="n<?php echo ($i+$count[0]+$count[1]+1); ?>"><?php echo ($page["page_name"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
								</div>
							</div>
						</div>
					</div>
					<div class="secondNav">
						<?php if(is_array($main)): $key = 0; $__LIST__ = $main;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$navi): ++$key;$mod = ($key % 2 )?><div id="subNav<?php echo ($key+$count[0]+1); ?>" class="subNav<?php echo ($key+$count[0]+1); ?>">
							<?php if(is_array($subnavi)): $i = 0; $__LIST__ = $subnavi;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): ++$i;$mod = ($i % 2 )?><?php if(($sub["channel_category"])  ==  $navi["category_id"]): ?><a
								href="__APP__/Home/View/channel?chid=<?php echo ($sub["channel_id"]); ?>"><?php echo ($sub["channel_name"]); ?></a><?php endif; ?><?php endforeach; endif; else: echo "" ;endif; ?>
						</div><?php endforeach; endif; else: echo "" ;endif; ?>
					</div>
				</div>
			</div>
		</div>
<?php if(isset($showbanner)): ?><div id='coin-slider'>
		<?php if(is_array($bills)): $i = 0; $__LIST__ = $bills;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$bill): ++$i;$mod = ($i % 2 )?><a	href="__APP__/Home/View/content?coid=<?php echo ($bill[1]["bill_content"]); ?>">
		<img src="/Public/Uploads/<?php echo ($bill[1]["bill_image"]); ?>">
		<span>
		 <?php echo ($bill[0]); ?>
		</span>
		</a><?php endforeach; endif; else: echo "" ;endif; ?>
</div><?php endif; ?>
<div id="content">
	<div id="up">
		<div id="left_pic">
			<div id="play">
				<div id="play_bg"></div>
				<div id="play_info"></div>
				<div id="play_text">
					<ul>
						<li>1</li>
						<li>2</li>
						<li>3</li>
						<li>4</li>
						<li>5</li>
						<li>6</li>
						<li>7</li>
						<li>8</li>
						<li>9</li>
					</ul>
				</div>
				<div id="play_list">
					<?php if(is_array($thumbs)): $i = 0; $__LIST__ = $thumbs;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$thumb): ++$i;$mod = ($i % 2 )?><a
						href="__APP__/Home/View/content?coid=<?php echo ($thumb[1]["thumb_content"]); ?>">
						<img src="/Public/Uploads/<?php echo ($thumb[1]["thumb_name"]); ?>"
						alt="<?php echo (msubstr($thumb[0],0,25)); ?>" /> </a><?php endforeach; endif; else: echo "" ;endif; ?>
				</div>
			</div>
		</div>
		<div id="right">
			<div id="title">
				<a href="__APP__/Home/View/channel?chid=23">通知公告</a>
			</div>
			<div id="scroll">
				<?php if(is_array($infos)): $i = 0; $__LIST__ = array_slice($infos,1,1);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): ++$i;$mod = ($i % 2 )?><ul>
					<?php if(is_array($info)): $i = 0; $__LIST__ = $info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$oneinfo): ++$i;$mod = ($i % 2 )?><li><a
						href="__APP__/Home/View/content?coid=<?php echo ($oneinfo["content_id"]); ?>"><?php echo ($oneinfo["content_title"]); ?></a>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul><?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
		</div>
		<div id="center">
			<div id="title">
				<a href="__APP__/Home/View/channel?chid=19">师范之声</a>
			</div>
			<?php if(is_array($infos)): $i = 0; $__LIST__ = array_slice($infos,0,1);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): ++$i;$mod = ($i % 2 )?><div id="smallimg">
				<?php if(is_array($smallimages)): $i = 0; $__LIST__ = array_slice($smallimages,0,1);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$smallimage): ++$i;$mod = ($i % 2 )?><a href="__APP__/Home/View/content?coid=<?php echo ($smallimage["thumb_content"]); ?>"><img
					src="/Public/Uploads/<?php echo ($smallimage["thumb_name"]); ?>" /> </a><?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
			<div id="smalltxt">
				<ul>
					<?php if(is_array($info)): $i = 0; $__LIST__ = array_slice($info,0,4);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$oneinfo): ++$i;$mod = ($i % 2 )?><li><a
						href="__APP__/Home/View/content?coid=<?php echo ($oneinfo["content_id"]); ?>"><?php echo (msubstr($oneinfo["content_title"],0,13)); ?></a>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div>
			<div id="normaltxt">
				<ul>
					<?php if(is_array($info)): $i = 0; $__LIST__ = array_slice($info,4);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$oneinfo): ++$i;$mod = ($i % 2 )?><li><a
						href="__APP__/Home/View/content?coid=<?php echo ($oneinfo["content_id"]); ?>"><?php echo (msubstr($oneinfo["content_title"],0,15)); ?></a><span><?php echo (date("Y-m-d",strtotime($oneinfo["content_time"]))); ?></span>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
	</div>
	<div id="middle">
		<div id="midleft">
			<div id="title">
				<a href="__APP__/Home/View/channel?chid=20">班级风采</a>
			</div>
			<?php if(is_array($infos)): $i = 0; $__LIST__ = array_slice($infos,2,1);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): ++$i;$mod = ($i % 2 )?><div id="smallimg">
				<?php if(is_array($smallimages)): $i = 0; $__LIST__ = array_slice($smallimages,2,1);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$smallimage): ++$i;$mod = ($i % 2 )?><a href="__APP__/Home/View/content?coid=<?php echo ($smallimage["thumb_content"]); ?>"><img
					src="/Public/Uploads/<?php echo ($smallimage["thumb_name"]); ?>" /> </a><?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
			<div id="smalltxt">
				<ul>
					<?php if(is_array($info)): $i = 0; $__LIST__ = array_slice($info,0,4);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$oneinfo): ++$i;$mod = ($i % 2 )?><li><a
						href="__APP__/Home/View/content?coid=<?php echo ($oneinfo["content_id"]); ?>"><?php echo (msubstr($oneinfo["content_title"],0,13)); ?></a>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div>
			<div id="normaltxt">
				<ul>
					<?php if(is_array($info)): $i = 0; $__LIST__ = array_slice($info,4);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$oneinfo): ++$i;$mod = ($i % 2 )?><li><a
						href="__APP__/Home/View/content?coid=<?php echo ($oneinfo["content_id"]); ?>"><?php echo (msubstr($oneinfo["content_title"],0,15)); ?></a><span><?php echo (date("Y-m-d",strtotime($oneinfo["content_time"]))); ?></span>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
		<div id="midright">
			<div id="title">
				<a href="__APP__/Home/View/channel?chid=24">活动预告</a>
			</div>
			<ul>
				<?php if(is_array($infos)): $i = 0; $__LIST__ = array_slice($infos,4,1);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): ++$i;$mod = ($i % 2 )?><?php if(is_array($info)): $i = 0; $__LIST__ = $info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$oneinfo): ++$i;$mod = ($i % 2 )?><li><a
					href="__APP__/Home/View/content?coid=<?php echo ($oneinfo["content_id"]); ?>"><?php echo (msubstr($oneinfo["content_title"],0,10)); ?></a><span><?php echo (date("m-d",strtotime($oneinfo["content_time"]))); ?></span>
				</li><?php endforeach; endif; else: echo "" ;endif; ?><?php endforeach; endif; else: echo "" ;endif; ?>
			</ul>
		</div>
		<div id="midcenter">
			<div id="title">
				<a href="__APP__/Home/View/channel?chid=22">师范之行</a>
			</div>

			<?php if(is_array($infos)): $i = 0; $__LIST__ = array_slice($infos,3,1);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$info): ++$i;$mod = ($i % 2 )?><div id="smallimg">
				<?php if(is_array($smallimages)): $i = 0; $__LIST__ = array_slice($smallimages,3,1);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$smallimage): ++$i;$mod = ($i % 2 )?><a href="__APP__/Home/View/content?coid=<?php echo ($smallimage["thumb_content"]); ?>"><img
					src="/Public/Uploads/<?php echo ($smallimage["thumb_name"]); ?>" /> </a><?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
			<div id="smalltxt">
				<ul>
					<?php if(is_array($info)): $i = 0; $__LIST__ = array_slice($info,0,4);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$oneinfo): ++$i;$mod = ($i % 2 )?><li><a
						href="__APP__/Home/View/content?coid=<?php echo ($oneinfo["content_id"]); ?>"><?php echo (msubstr($oneinfo["content_title"],0,13)); ?></a>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div>
			<div id="normaltxt">
				<ul>
					<?php if(is_array($info)): $i = 0; $__LIST__ = array_slice($info,4);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$oneinfo): ++$i;$mod = ($i % 2 )?><li><a
						href="__APP__/Home/View/content?coid=<?php echo ($oneinfo["content_id"]); ?>"><?php echo (msubstr($oneinfo["content_title"],0,15)); ?></a><span><?php echo (date("Y-m-d",strtotime($oneinfo["content_time"]))); ?></span>
					</li><?php endforeach; endif; else: echo "" ;endif; ?>
				</ul>
			</div><?php endforeach; endif; else: echo "" ;endif; ?>

		</div>

	</div>
	<div id="button">
		<div id="search_input" style="float: left; height: 80px;">
			<img class="im" src="/Public/home/search.jpg"
				style="float: left; height: 30px; width: 285px" /> <br />
			<form action="__APP__/Home/index/search" name="search">
<table border="0" cellpadding="0" cellspacing="0" class="tab_search">
	<tr>
		<td>
			<input type="text" name="keyWords" title="Search" class="searchinput" id="searchinput" onkeydown="if (event.keyCode==13) {}" onblur="if(this.value=='')value='- Key Words -';" onfocus="if(this.value=='- Key Words -')value='';" value="- Key Words -" size="10"/>
		</td>
		<td>
			<input type="image" width="21" height="17" class="searchaction" onclick="if(document.forms['search'].searchinput.value=='- Key Words -')document.forms['search'].searchinput.value='';" alt="Search" src="/Public/home/magglass.gif" border="0" hspace="2"/>
		</td>
	</tr>
</table>
</form>
		</div>
		<div id="marquee">
			<div class="table">

				<div class="inner">

					<div class="marquee level" direction="left" speed="30" step="1"
						pause="1000">

						<ul>
							<?php if(is_array($images)): $i = 0; $__LIST__ = $images;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$image): ++$i;$mod = ($i % 2 )?><li><a
								href="__APP__/Home/View/content?coid=<?php echo ($image["image_content_id"]); ?>">
									<img src="/Public/Uploads/<?php echo ($image["image_name"]); ?>" height="75" width="75" style="border: none;"> </a>
							</li><?php endforeach; endif; else: echo "" ;endif; ?>
						</ul>
					</div>
				</div>
			</div>
		</div>
	</div>
	
<div id="footer">
<div id="imagelink">
<label>友情链接</label><br />
<?php if(is_array($imagelink)): $i = 0; $__LIST__ = $imagelink;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$link): ++$i;$mod = ($i % 2 )?><a href="<?php echo ($link["link_url"]); ?>"><img src="/Public/Uploads/s_<?php echo ($link["link_logo"]); ?>" width="100px" height="70px" style="border:none;"/></a>
	&nbsp;&nbsp;&nbsp;<?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<div id="txtlink">
<?php if(is_array($txtlink)): $i = 0; $__LIST__ = $txtlink;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$link): ++$i;$mod = ($i % 2 )?><a href="<?php echo ($link["link_url"]); ?>"><?php echo ($link["link_name"]); ?></a>
	&nbsp;&nbsp;&nbsp;<?php endforeach; endif; else: echo "" ;endif; ?>
</div>
<span>版权所有:北京师范大学学生处</span>
<span>地址:北京市海淀区新街口外大街19号 邮编:100875 | <a href="__APP__/Admin/Index/index">管理员</a></span>		
</div>
</div>

</body>
</html>